using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class TextForSlider : MonoBehaviour
{
    public Slider m_Slider;
    Text m_Text;
    void Start()
    {
        m_Text = GetComponent<Text>();
    }

    // Update is called once per frame
    void Update()
    {
        if(m_Slider != null && 
            m_Text != null)
        {
            m_Text.text = m_Slider.value.ToString();
        }
    }
}
